package com.sunshine.lnuplus.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import com.sunshine.lnuplus.ui.fragment.*

class WelcomeAdapter(fm: FragmentManager) : FragmentStatePagerAdapter(fm) {

    private val fragmentList: List<Fragment> = listOf(
        WelcomeFirstFragment(),
        WelcomeSecondFragment(),
        WelcomeThirdFragment(),
        WelcomeFourFragment()
    )

    override fun getItem(position: Int): Fragment {
        return fragmentList.get(position)
    }

    override fun getCount(): Int {
        return fragmentList.size
    }

}